#!/bin/bash
j_script_dir=`dirname $0`
j_jenny_root_dir=`(cd $j_script_dir/..; pwd)`

. $j_jenny_root_dir/common/function

usage() {
	echo "jenny init"
	echo "		init current project. it'll create jenny.cmake in current directory."
	exit 0
}
if [ "$1" = "-h" ]; then 
	usage
fi

j_no_jenny_cmake=1
j_project_dir=${1:-`pwd`}
parse_args $@

[ -f $j_config_path ] || die "Already initialized, jenny.cmake exists."

cp $j_jenny_root_dir/template/jenny.cmake $j_project_dir/jenny.cmake

echo "Done."
